import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export function getProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

export function getUserDetailById(userId) {
  return request({
    url: '/sys/user/' + userId,
    method: 'get'

  })
}
export function logout() {
  // return request({
  //   url: '/vue-admin-template/user/logout',
  //   method: 'post'
  // })
}
